package com.data.model.enums;

import lombok.Getter;

public enum OperatorEnum {

    EQUAL("=", "等于"),

    NOT_EQUAL("!=", "不等于"),

    LESS_THAN("<", "小于"),

    LESS_OR_EQUAL("<=", "小于"),

    GREATER_THAN(">", "大于"),

    GREATER_OR_EQUAL(">=", "大于"),

    BETWEEN("between", "介于"),

    NOT_BETWEEN("not between", "不介于"),


    IN("in", "包含"),

    NOT_IN("not in", "不包含"),

    SQL("sql", "自定义"),

    ;

    @Getter
    private final String code;


    @Getter
    private final String desc;

    OperatorEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
